package test;

import java.util.*;

/**
 * @author Coder-lcm
 * @date 2021/2/19
 */
public class testMap {
    private static final String KEY_ID_DIVIDE_FLAG = ".";
    public static void main(String[] args) {
//        String str = "123.123.123";
//        String[] strings = str.split(KEY_ID_DIVIDE_FLAG);
//        System.out.println(strings.length);
//        System.out.println(strings[0]);
        List<Integer> list_1 = null;
        List<Integer> list0 = new ArrayList<>();
        List<Integer> list2 = Arrays.asList(1,2,3,4,6,7);
        System.out.println(checkCollection(list0));
        System.out.println(checkCollection(list_1));
        System.out.println(checkCollection(list2));
        System.out.println(checkCollection(new HashSet()));

    }

    public static boolean checkCollection(Collection cs) {
        return cs == null || cs.size() == 0;
    }
}
